<div class="contents">
  <ol class="breadcrumb">
    <li><a href="#/index/panel">首页</a></li>
    <li class="active">开关管理</li>
  </ol>
  
  <table class="table table-striped table-hover">
    <thead>
      <tr>
        <th width="">开关名称</th>
        <th width="">开关状态</th>
        <th width="">开关备注</th>
        <th width="">操作</th>
      </tr>
    </thead>
    <tbody>
      <tr ng-repeat="s in switchs">
        <td>{{s.sKey}}</td>
        <td>{{s.sValue | switchRender}}</td>
        <td>{{s.sComment}}</td>
        <td>
          <a href="" ng-click="changeSwitch(s.id,'1')" ng-if="s.sValue == '0'">开</a>
          <a href="" ng-click="changeSwitch(s.id,'0')" ng-if="s.sValue == '1'">关</a>
        </td>
      </tr>
    </tbody>
  </table>

  <div class="pager-box" ng-include src="'tpl/public/pager.html'" ng-show="withdraws.length > 0"></div>
</div>
